<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线OJ-题目列表</title>
    <style>
        /* Reset default margins and paddings */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f3f3f3;
            color: #333;
            line-height: 1.6;
            margin: 0;
        }

        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .navbar {
            background-color: #333;
            overflow: hidden;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }

        .navbar a {
            display: inline-block;
            padding: 15px 20px;
            color: inherit;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .navbar a:hover {
            background-color: #555;
        }

        .navbar .login {
            margin-left: auto;
            padding: 15px 20px;
            transition: background-color 0.3s ease;
        }

        .navbar .login:hover {
            background-color: #555;
        }

        .content {
            flex: 1;
            padding: 20px;
        }

        .question_list {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }

        .question_list h1 {
            color: #007bff;
            margin-bottom: 20px;
        }

        .question_list table {
            width: 100%;
            border-collapse: collapse;
        }

        .question_list th,
        .question_list td {
            padding: 12px;
            text-align: center;
            border-bottom: 1px solid #ddd;
        }

        .question_list .item a {
            color: #007bff;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .question_list .item a:hover {
            color: #0056b3;
        }

        .footer {
            padding: 20px;
            text-align: center;
            color: #888;
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- Navigation bar -->
        <div class="navbar">
            <div>
                <a href="/">首页</a>
                <a href="/all_questions">题库</a>
                <a href="#">竞赛</a>
                <a href="#">讨论</a>
                <a href="#">求职</a>
            </div>
            <a class="login" href="#">登录</a>
        </div>
        <div class="content">
            <div class="question_list">
                <h1>OnlineJuge题目列表</h1>
                <table>
                    <tr>
                        <th class="item">编号</th>
                        <th class="item">标题</th>
                        <th class="item">难度</th>
                    </tr>
                    {{#question_list}}
                    <tr>
                        <td class="item">{{number}}</td>
                        <td class="item"><a href="/question/{{number}}">{{title}}</a></td>
                        <td class="item">{{star}}</td>
                    </tr>
                    {{/question_list}}
                </table>
            </div>
        </div>
        <div class="footer">
            <h4>@17706051586</h4>
        </div>
    </div>
</body>

</html>

